PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Theme Menu Item Type Constants

Constants of type ThemeMenuItemType identify types of menu items. Your application may pass a ThemeMenuItemType constant to the function DrawThemeMenuItem to draw a menu item of the specified type, or it may pass a ThemeMenuItemType constant to the function GetThemeMenuItemExtra to retrieve spatial information for the given menu item type under the current theme.

enum {
    kThemeMenuItemPlain             = 0,
    kThemeMenuItemHierarchical      = 1,
    kThemeMenuItemScrollUpArrow     = 2,
    kThemeMenuItemScrollDownArrow   = 3,
    kThemeMenuItemAtTop             = 0x0100,
    kThemeMenuItemAtBottom          = 0x0200,
    kThemeMenuItemHierBackground    = 0x0400,
    kThemeMenuItemPopUpBackground   = 0x0800,
    kThemeMenuItemHasIcon           = 0x8000
};
typedef UInt16 ThemeMenuItemType;

Constant descriptions

kThemeMenuItemPlain
A plain menu item. Available with Appearance Manager 1.0.1 and later.
kThemeMenuItemHierarchical
A hierarchical menu item. Available with Appearance Manager 1.0.1 and later.
kThemeMenuItemScrollUpArrow
A scroll-up arrow. Available with Appearance Manager 1.0.1 and later.
kThemeMenuItemScrollDownArrow
A scroll-down arrow. Available with Appearance Manager 1.0.1 and later.
kThemeMenuItemAtTop
This value may be added to other ThemeMenuItemType constants to specify that the item being drawn appears at the top of the menu. Available with Appearance Manager 1.1 and later.
kThemeMenuItemAtBottom
This value may be added to other ThemeMenuItemType constants to specify that the item being drawn appears at the bottom of the menu. Available with Appearance Manager 1.1 and later.
kThemeMenuItemHierBackground
This value may be added to other ThemeMenuItemType constants to specify that the item being drawn is located in a hierarchical menu. Available with Appearance Manager 1.1 and later.
kThemeMenuItemPopUpBackground
This value may be added to other ThemeMenuItemType constants to specify that the item being drawn is located in a pop-up menu. Available with Appearance Manager 1.1 and later.
kThemeMenuItemHasIcon
This value may be added to the kThemeMenuItemPlain or kThemeMenuItemHierarchical constants, to specify that an icon is drawn along with the item text. This value may not be used with the kThemeMenuItemScrollUpArrow and kThemeMenuItemScrollDownArrow constants. Available with Appearance Manager 1.1 and later.

© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)